import requests
s = requests.session()
print("登录前cookie:",s.cookies)
canshu = {
    "access_type"	:"1",
    "loginType":	"1",
    "emailLoginWay":	"0",
    "account" :"2780487875@qq.com",
    "password":	"qq2780487875",
    "remindmeBox"	:"on",
    "remindme"	:"1"
}

r = s.post("https://www.bagevent.com/user/login",data = canshu)
print(r.status_code)
print("登录后的cookie:",s.cookies)
r = s.get("https://www.bagevent.com/account/dashboard")
#print(r.text)
#https://www.bagevent.com/user/login_out突出登录的接口
t = s.get("https://www.bagevent.com/user/login_out")
print(r.status_code)
print("退出后的cookie：",s.cookies)
